/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout';

// 路由模块化：用户管理中心路由
const UserRouters = [
    {
        hidden: true,
        path: '/user',
        component: Layout,
        redirect: '/list',
        meta: {
            icon: 'el-icon-s-help',
            title: '用户管理'
        },
        children: [
            {
                path: 'list',
                name: 'UserList',
                component: () => import('@/views/user-management/user-list/index'),
                meta: {
                    title: '用户列表'
                }
            },
            {
                path: 'menu',
                name: 'UserMenu',
                component: () => import('@/views/user-management/user-menu/index'),
                meta: {
                    title: '菜单列表'
                }
            },
            {
                path: 'permission',
                name: 'UserPermission',
                component: () => import('@/views/user-management/user-permission/index'),
                meta: {
                    title: '权限组管理'
                }
            },
            {
                path: 'depart',
                name: 'UserDepart',
                component: () => import('@/views/user-management/user-depart/index'),
                meta: {
                    title: '部门列表'
                }
            },
            {
                path: 'departmanage',
                name: 'UserDepartManage',
                component: () => import('@/views/user-management/user-depart/manage'),
                meta: {
                    title: '部门管理'
                }
            }
        ]
    }
];

export default UserRouters;
